<div id="tableRelate">
    <div class="table-nav">
        <form class="form-inline">
            <select class="form-control">
                <option selected disabled>顺序</option>
                <option>顺序</option>
                <option>3</option>
                <option>3</option>
                <option>3</option>
                <option>3</option>
            </select>
            <button type="button" class="btn btn-default btn-delete">删除</button>
            <button type="button" class="btn btn-default btn-delete btn-add" >新增</button>
            <button type="button" class="btn btn-default btn-query">查询</button>
            <div class="form-group">
                <input type="text" class="form-control" id="queryContent" placeholder="查询内容">
            </div>
        </form>
    </div>
    <div class="table-wrap">
        <table id="Table">
        </table>
    </div>
</div>


<!-- Modal 修改和增加-->
<div class="modal" id="deviceHandle" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="modifyCheckTitle"></h4>
            </div>
            <div class="modal-body">
                <div class="modal-describe">
                    <div>
                        <p>路口名称：</p>
                        <select class="form-control">
                            <option>1</option>
                            <option>2</option>
                            <option>3</option>
                            <option>4</option>
                            <option>5</option>
                        </select>
                    </div>
                    <div>
                        <p>路口编号：</p>
                        <input type="text" class="form-control" value="1232">
                        <p><span class="glyphicon glyphicon-ok"></span>编号可用</p>
                    </div>
                </div>
                <div>
                    <!-- Nav tabs -->
                    <ul class="nav nav-tabs" role="tablist">
                        <li class="active"><a href="#handleA" data-toggle="tab">A组</a></li>
                        <li><a href="#handleB" data-toggle="tab">B组</a></li>
                    </ul>
                    <!-- Tab panes -->
                    <div class="tab-content">
                        <div class="tab-pane active" id="handleA">
                            <table class="table table-hover">
                                <thead>
                                <tr><th>相位</th><th>执行顺序</th><th>方案</th><th>操作</th></tr>
                                </thead>
                                <tbody>
                                    <tr>
                                    <td>
                                        <select class="form-control">
                                            <option>相位1</option>
                                            <option>相位1</option>
                                            <option>相位1</option>
                                            <option>相位1</option>
                                        </select>
                                    </td>
                                    <td>
                                        <input type="text" class="form-control" value="123">
                                    </td>
                                    <td>
                                        <select class="form-control">
                                            <option>XXX方案</option>
                                            <option>XXX方案</option>
                                            <option>XXX方案</option>
                                            <option>XXX方案</option>
                                        </select>
                                    </td>
                                    <td>X</td>
                                </tr>
                                    <tr>
                                        <td>
                                            <select class="form-control">
                                                <option>相位1</option>
                                                <option>相位1</option>
                                                <option>相位1</option>
                                                <option>相位1</option>
                                            </select>
                                        </td>
                                        <td>
                                            <input type="text" class="form-control" value="123">
                                        </td>
                                        <td>
                                            <select class="form-control">
                                                <option>XXX方案</option>
                                                <option>XXX方案</option>
                                                <option>XXX方案</option>
                                                <option>XXX方案</option>
                                            </select>
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <select class="form-control">
                                                <option>相位1</option>
                                                <option>相位1</option>
                                                <option>相位1</option>
                                                <option>相位1</option>
                                            </select>
                                        </td>
                                        <td>
                                            <input type="text" class="form-control" value="123">
                                        </td>
                                        <td>
                                            <select class="form-control">
                                                <option>XXX方案</option>
                                                <option>XXX方案</option>
                                                <option>XXX方案</option>
                                                <option>XXX方案</option>
                                            </select>
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <select class="form-control">
                                                <option>相位1</option>
                                                <option>相位1</option>
                                                <option>相位1</option>
                                                <option>相位1</option>
                                            </select>
                                        </td>
                                        <td>
                                            <input type="text" class="form-control" value="123">
                                        </td>
                                        <td>
                                            <select class="form-control">
                                                <option>XXX方案</option>
                                                <option>XXX方案</option>
                                                <option>XXX方案</option>
                                                <option>XXX方案</option>
                                            </select>
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <select class="form-control">
                                                <option>相位1</option>
                                                <option>相位1</option>
                                                <option>相位1</option>
                                                <option>相位1</option>
                                            </select>
                                        </td>
                                        <td>
                                            <input type="text" class="form-control" value="123">
                                        </td>
                                        <td>
                                            <select class="form-control">
                                                <option>XXX方案</option>
                                                <option>XXX方案</option>
                                                <option>XXX方案</option>
                                                <option>XXX方案</option>
                                            </select>
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <select class="form-control">
                                                <option>相位1</option>
                                                <option>相位1</option>
                                                <option>相位1</option>
                                                <option>相位1</option>
                                            </select>
                                        </td>
                                        <td>
                                            <input type="text" class="form-control" value="123">
                                        </td>
                                        <td>
                                            <select class="form-control">
                                                <option>XXX方案</option>
                                                <option>XXX方案</option>
                                                <option>XXX方案</option>
                                                <option>XXX方案</option>
                                            </select>
                                        </td>
                                        <td>X</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="tab-pane" id="handleB">
                            <table class="table table-hover">
                                <thead>
                                <tr><th>相位</th><th>执行顺序</th><th>方案</th><th>操作</th></tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>
                                        <select class="form-control">
                                            <option>相位1</option>
                                            <option>相位1</option>
                                            <option>相位1</option>
                                            <option>相位1</option>
                                        </select>
                                    </td>
                                    <td>
                                        <input type="text" class="form-control" value="123">
                                    </td>
                                    <td>
                                        <select class="form-control">
                                            <option>XXX方案</option>
                                            <option>XXX方案</option>
                                            <option>XXX方案</option>
                                            <option>XXX方案</option>
                                        </select>
                                    </td>
                                    <td><button type="button" class="btn btn-query">删除</button></td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="btnS">
                    <p class="btn"><span></span>添加灯组</p>
                    <p class="btn"><span></span>添加相位</p>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal">提交</button>
                <button type="button" class="btn btn-delete">取消</button>
            </div>
        </div>
    </div>
</div>
<!-- model 结束 -->

<!-- Modal 查看-->
<div class="modal" id="deviceCheck" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title"></h4>
            </div>
            <div class="modal-body">
                <div class="modal-describe">
                    <div>
                        <p>路口名称：<span>1232</span></p>
                    </div>
                    <div>
                        <p>路口编号：<span>14214</span></p>

                    </div>
                </div>
                <div>
                    <!-- Nav tabs -->
                    <ul class="nav nav-tabs" role="tablist">
                        <li class="active"><a href="#checkA" data-toggle="tab">A组</a></li>
                        <li><a href="#checkB" data-toggle="tab">B组</a></li>
                    </ul>
                    <!-- Tab panes -->
                    <div class="tab-content">
                        <div class="tab-pane active" id="checkA">
                            <table class="table table-hover">
                                <thead>
                                    <tr><th>相位</th><th>执行顺序</th><th>方案</th><th>操作</th></tr>
                                </thead>
                                <tbody>
                                    <tr>
                                    <td>
                                        相位1
                                    </td>
                                    <td>
                                        执行顺序
                                    </td>
                                    <td>
                                        方案
                                    </td>
                                    <td>X</td>
                                </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="tab-pane" id="checkB">
                            <table class="table table-hover">
                                <thead>
                                    <tr><th>相位</th><th>执行顺序</th><th>方案</th><th>操作</th></tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            相位1
                                        </td>
                                        <td>
                                            执行顺序
                                        </td>
                                        <td>
                                            方案
                                        </td>
                                        <td>X</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal">编辑</button>
                <button type="button" class="btn btn-delete">删除</button>
            </div>
        </div>
    </div>
</div>
<!-- model 结束 -->